import Vue from 'vue';
import Vuex from 'vuex';
import { set_breadcrumb_list } from './mutations-types';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    breadcrumb_list: [],
  },
  getters: {},
  mutations: {
    // 方便更改 函数名 减少工作量
    [set_breadcrumb_list](state, payload) {
      state.breadcrumb_list = payload;
    },
  },
  actions: {},
  modules: {},
});
